<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>修改栏目</title>
	<link rel="stylesheet" href="__ACSS__/table.css">
</head>
<body>
	<div class="table-wrap">
		<div class="table-main">
			<div class="ibox-title">
				<h3>修改栏目<small>&nbsp;&nbsp;下方填写数据均不能为空</small></h3>
			</div>
			<div class="ibox-content">	
				<form action="{:url('admin/admin_column/update',['catId' => $data.catId])}" class="form-main" method="post">
					<div class="form-group">
						<ul>
							<li>
								<span class="form-title">栏目名称</span>
								<input class="form-lower form-text" type="text" value="{$data.catName}"  name="catName">
								<em class="form-error">* 不能为空</em>
							</li>
							<li>
								<span class="form-title">选择父级目录</span>
								<select name="parentId" class="form-lower form-text">
									<option value="0" {if condition="$data.parentId eq 0"}selected{/if}>作为第一级栏目</option>
    								{volist name="pid" id="v"}
									<option value="{$v['catId']}" {if condition="$v.catId eq $data.parentId"}selected{/if}>{$v.catName}</option>
    								{/volist}

								</select>
								<em class="form-error">* 不能为空</em>
							</li>
                            <li>
                                <span class="form-title">状态</span>
                                <label class="form-radio"><input type="radio" value="1" name="isShow" {if condition="$data.isShow eq 1"}checked{/if}>开启</label>
                                <label class="form-radio"><input type="radio" value="0" name="isShow" {if condition="$data.isShow eq 0"}checked{/if}>关闭</label>
                            </li>
							<li>
								<span class="form-title">排序号</span>
								<input class="form-lower form-text" type="number"  value="{$data.catSort}" name="catSort">
								<em class="form-error">* 不能为空</em>
							</li>
							<li>
								<span class="form-title"></span>
								<input class="form-submit-btn" type="submit" value="提交修改">
								<a href="{:url('admin/admin_column/read',['catId'=>$data['parentId']])}" class="form-back-btn" name="">返回</a>
							</li>
						</ul>
					</div>

				</form>
			</div>
		</div>
	</div>

</body>
</html>